module.exports = {
    publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
    lintOnSave: false,
    outputDir: 'docs',
    productionSourceMap: false,
    devServer: {
        open: false,
        host: 'localhost',
        port: '8080',
        https: false,
        hotOnly: true,
        compress: true,
    },
    chainWebpack: config => {
        config.module
            .rule('images')
            .use('url-loader')
            .loader('url-loader')
            .tap(options => Object.assign(options, { limit: true }))
    },
}
